home *** CD-ROM | disk | FTP | other *** search
/ 130 MIDI Tool Box / 130 MIDI Tool Box.iso / sbmidi / sbmidi.txt
Text File  |  1991-02-28  |  8KB  |  178 lines

  1.  
  2.  
  3.                        ==============================
  4.                          A cheap MIDI connector box
  5.                          for the Sound Blaster card
  6.                                     v1.0
  7.                                       
  8.                                      by
  9.                                Adam Mirowski
  10.                                mir@chorus.fr
  11.                        ==============================
  12.      
  13.      
  14.      Sound Blaster  has a  "built-in MIDI interface", but "all you need
  15.      is a MIDI Connector Box (optionally available) in order to connect
  16.      your SB  to MIDI  instruments or  keyboards", says  the add on the
  17.      box. The  list price  for that  gadget is  as high  as $79.95  and
  18.      anyway it  is  not  available  here  in  France.  Also,  the  MIDI
  19.      interface is  not compatible  with the  MPU-401 standard  (and  de
  20.      facto norm) and is only one-way-at-a-time. So the box is not worth
  21.      the money,  except if you try to set up it by yourself. For $5 you
  22.      can get  the basic  functionalities and  for $10  everything which
  23.      comes with the original one.
  24.      
  25.      
  26.                                    Parts
  27.                                    =====
  28.      
  29.           Qty     Name               Type           Tandy ref
  30.           ---------------------------------------------------
  31.            1   Optocoupler         4N25             276-9294
  32.            3   Resistors           220 ohm          271-015
  33.            1   Resistor            1 Kohm
  34.            1   AND gate            74LS08           276-9276
  35.            2   DIN plugs           Female 5 pins    274-9110
  36.            1   Canon DB plug       Male 15 pins     Not sold
  37.           [1]  Diode               1N914
  38.            1   Veroboard (*)       5cm by 5cm
  39.            8   Wires               Not shielded
  40.            1   Box to put all that stuff inside
  41.      
  42.      
  43.      [] - didn't use it myself.
  44.      
  45.      (*) I  am not  sure how  it is called in English. It is a piece of
  46.          epoxide with  a raster  of holes spaced at 2.54mm. On one side
  47.          there are  preprinted copper  tracks along  each line of holes
  48.          (in one  direction only).  You cut  off unused portions of the
  49.          tracks and  join the  other  with  straps,  so  as  to  get  a
  50.          primitive form of a printed circuit board. You then insert the
  51.          electronic parts and solder them.
  52.      
  53.      
  54.      
  55.                Sound Blaster MIDI/Game connector REAL cabling
  56.                ==============================================
  57.      
  58.      
  59.                 +------------------------------------------+
  60.                 !  Pin       Signal                        !
  61.                 !------------------------------------------!
  62.                 !   1     +5V                              !
  63.                 !   2     X button for joystick A          !
  64.                 !   3     X potentiometer for joystick A   !
  65.                 !   4     Ground                           !
  66.                 !   5     Ground                           !
  67.                 !   6     Y potentiometer for joystick A   !
  68.                 !   7     Y button for joystick A          !
  69.                 !   8     +5V                              !
  70.                 !   9     +5V                              !
  71.                 !  10     X button for joystick B          !
  72.                 !  11     X potentiometer for joystick B   !
  73.                 !  12     MIDI out                         !
  74.                 !  13     Y potentiometer for joystick B   !
  75.                 !  14     Y button for joystick B          !
  76.                 !  15     MIDI in                          !
  77.                 +------------------------------------------+
  78.      
  79.      The interesting pins are 12, 15, 4 (or 5) and 9 (or 8 or 1).
  80.      
  81.      BTW, if your joystick Y cable assumes that pin 12 is ground (as it
  82.      is on a normal game port), it will not work with the SB.
  83.      
  84.                                       
  85.                              Interface cabling
  86.                              =================
  87.      
  88.      The cabling  is roughly the same as in the MIDI 1.0 Specification,
  89.      except that I used a different optocoupler and "AND" gates instead
  90.      of inverters (simply because Tandy sold the former with docs :-).
  91.      
  92.      Numbers between  parentheses are  pin numbers. ICs have a standard
  93.      pin numbering  scheme. Other  parts have  pin numbers  written  on
  94.      them. For  resistors, it's  simply to  make difference between the
  95.      two ends.
  96.      
  97.      
  98.                           6    5    4
  99.                        +--!----!----!--+
  100.          Usually       !               !         IC seen from the top
  101.          a hole -->    >               !
  102.                        !               !
  103.                        +--!----!----!--+
  104.                           1    2    3
  105.      
  106.      "MIDI-in", "MIDI-out"  design the  female MIDI  plugs. "Game/MIDI"
  107.      designs the 15 pin female connector on the SB.
  108.      
  109.      
  110.          FROM PIN                 TO PIN
  111.      
  112.      
  113.      MIDI input part
  114.      ---------------
  115.      MIDI-in (4)             Resistor1 220ohm (1)
  116.      Resistor1 220ohm (2)    Optocoupler (1)
  117.      Optocoupler (2)         MIDI-in (5)
  118.      [Optocoupler (1)        Diode -]
  119.      [Optocoupler (2)        Diode +]
  120.      
  121.      Games/MIDI (9)          Resistor4 1Kohm (1)
  122.      Resistor4 1Kohm (2)     Optocoupler (5)
  123.      Games/MIDI (15)         Optocoupler (5)
  124.      Optocoupler (4)         Game/MIDI (4)
  125.      
  126.      
  127.      MIDI output part
  128.      ----------------
  129.      Games/MIDI (12)         AND gate (1)
  130.      AND gate (1)            AND gate (2)
  131.      AND gate (3)            Resistor2 220ohm (1)
  132.      Resistor2 220ohm (2)    MIDI-out (5)
  133.      MIDI-out (4)            Resistor3 220ohm (1)
  134.      Resistor3 220ohm (2)    Game/MIDI (9)
  135.      Games/MIDI (9)          AND gate (14)
  136.      Games/MIDI (4)          AND gate (7)
  137.      
  138.      
  139.                                Final remarks
  140.                                =============
  141.                                       
  142.      When using  a "veroboard", don't forget to cut tracks under the IC
  143.      and the optocoupler, or they will be short-circuited.
  144.      
  145.      You will probably also want to setup two MIDI cords, to attach the
  146.      interface to  an instrument.  To stay under $5, you could use male
  147.      plugs instead  of female  ones for  the interface  and  plug  them
  148.      directly into the instrument.
  149.      
  150.      When preparing the cords, be careful about not swapping the wires.
  151.      The pin 4 from one plug must be wired to pin 4 from the other end,
  152.      and the  pin 5  must be  attached to pin 5. None of the other pins
  153.      must be  wired, nor the overall cable shielded. There is no ground
  154.      in MIDI cords.
  155.      
  156.      If you  want more  outputs, you  have to  slightly extend the MIDI
  157.      output part.  I would rather have only one AND gate input attached
  158.      to the  SB MIDI-out  pin and  only one  MIDI-out plug per AND gate
  159.      output. If  Creative Labs  offer  5  MIDI  outs  in  the  original
  160.      Connector Box,  it is  probably because  they use simple inverters
  161.      (or buffers)  and there  are 6  per IC.  As I  previously said,  I
  162.      bought AND  gates only  because they  had  data  sheets  attached,
  163.      whereas inverters/buffers had not...
  164.      
  165.      Direct your remarks to mir@chorus.fr, or to
  166.      
  167.                 M. Adam Mirowski
  168.                 Chorus systemes
  169.                 6, avenue Gustave Eiffel
  170.                 F-78182 Saint-Quentin-en-Yvelines CEDEX
  171.                 FRANCE
  172.      
  173.      My phone number is +33 (1) 30-64-82-00
  174.      
  175.      I obviously  won't take  any responsibility  for the  damages  you
  176.      could do  to your  Sound Blaster  or to  your MIDI equipment while
  177.      using this interface.
  178.